[NTG-context] Re: xml: matches always child of other element

2023-08-10 Thread Hans Hagen via ntg-context
av-pointer} \xmlsetsetup{#1}{nav-pointer/ext-link}{xml:nav-pointer-link} \stopxmlsetups \xmlregisterdocumentsetup{test}{xml:test} % Index \startxmlsetups xml:book-back \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:index \startsectionlevel[title={\xmlfilter{

[NTG-context] Re: xml: matches always child of other element

2023-07-27 Thread denis.maier
\startsectionlevel[title={\xmlfilter{#1}{/index-title-group/title/command(xml:index-title)}},] \xmlflush{#1} \stopsectionlevel \stopxmlsetups \startxmlsetups xml:index-title \xmlflush{#1} \stopxmlsetups \definedescription[indexentry] [alternative=top

[NTG-context] Re: xml: matches always child of other element

2023-07-24 Thread denis.maier
\startsectionlevel[title={\xmlfilter{#1}{/index-title-group/title/command(xml:index-title)}},] \xmlflush{#1} \stopsectionlevel \stopxmlsetups \startxmlsetups xml:index-title \xmlflush{#1} \stopxmlsetups \definedescription[indexentry] [alternative

[NTG-context] xml: matches always child of other element

2023-07-24 Thread denis.maier
\xmlflush{#1} \stopxmlsetups \startxmlsetups xml:index \startsectionlevel[title={\xmlfilter{#1}{/index-title-group/title/command(xml:index-title)}},] \xmlflush{#1} \stopsectionlevel \stopxmlsetups \startxmlsetups xml:index-title \xmlflush{#1

Re: [NTG-context] Improving pandoc's ConTeXt output

2022-06-05 Thread Albert Krewinkel via ntg-context
ible) > > Someone who maintains an export programme for ConTeXt uses > sectionlevels. > > You get the incremental subsections and subsubsection like this. > > \startsectionlevel > \startsectionlevel > \startsectionlevel > \stopsectionlevel > \stopsecti

Re: [NTG-context] Improving pandoc's ConTeXt output

2022-06-05 Thread Denis Maier via ntg-context
amme for ConTeXt uses > sectionlevels. > > You get the incremental subsections and subsubsection like this. > > \startsectionlevel > \startsectionlevel > \startsectionlevel > \stopsectionlevel > \stopsectionlevel > \stopsectionlevel > > This makes it possible to ignore t

Re: [NTG-context] Improving pandoc's ConTeXt output

2022-06-05 Thread juh via ntg-context
subsubsection like this. \startsectionlevel \startsectionlevel \startsectionlevel \stopsectionlevel \stopsectionlevel \stopsectionlevel This makes it possible to ignore the part-chapter-section naming convention and be more flexible. You can leave it to the style files to decide which level

Re: [NTG-context] \startstructurelevel

2020-09-20 Thread Denis Maier
an unnumbered heading. How can I get that? Browsing through the source I came across this: https://source.contextgarden.net/tex/context/base/mkiv/strc-lev.mkvi?search=startstructurelevel#l65 So, it seems that \startstructurelevel is just an alias for \startsectionlevel. Right? Unnumbered headings can

Re: [NTG-context] \startstructurelevel

2020-09-20 Thread Otared Kavian
rowsing through the source I came across this: > https://source.contextgarden.net/tex/context/base/mkiv/strc-lev.mkvi?search=startstructurelevel#l65 > > So, it seems that \startstructurelevel is just an alias for > \startsectionlevel. Right? > Unnumbered headings can be produced

[NTG-context] \startstructurelevel

2020-09-20 Thread Denis Maier
. How can I get that? Browsing through the source I came across this: https://source.contextgarden.net/tex/context/base/mkiv/strc-lev.mkvi?search=startstructurelevel#l65 So, it seems that \startstructurelevel is just an alias for \startsectionlevel. Right? Unnumbered headings can be produced

Re: [NTG-context] Typesetting Markdown -- Part 2

2019-05-30 Thread Thangalin
> > sense to check all these mappings onto context, for instance I think > that pandoc uses \section and such while in fact it should use > \startsectionlevel[title={}] ... \stopsectionlevel so that one can embed > documents in other documents. > https://github.com/jgm/pandoc

Re: [NTG-context] Typesetting Markdown -- Part 2

2019-05-30 Thread Hans Hagen
it could mean it could be Pandoc's one, but not sure? I don't know as I never use these coding methods. But it might make sense to check all these mappings onto context, for instance I think that pandoc uses \section and such while in fact it should use \startsectionlevel[title

Re: [NTG-context] labeltext via lua

2017-02-16 Thread Hans Hagen
look into lang-txt.lua As a related side-request: how can I fix expansion in cases like this: \startsectionlevel[title=\labeltext{test}] ... this causes the bookmark to read "test" instead of "Something". \expandafter\startsectionlevel... didn't cut it.

[NTG-context] labeltext via lua

2017-02-16 Thread Andreas Schneider
Hello, if I define a labeltext via \setuplabeltext[en][test=Something], how can I access that value via lua? (context.labeltext obviously prints the content, but doesn't allow me to use it in lua). As a related side-request: how can I fix expansion in cases like this: \startsectionlevel

Re: [NTG-context] \startsectionlevel broken?

2016-08-08 Thread Hans Hagen
On 8/8/2016 5:34 PM, Procházka Lukáš Ing. wrote: Hello, I'm getting weird output with \startsectionlevel - its parameters are flushed into page. I copied a sample from http://source.contextgarden.net/tex/context/base/strc-lev.mkvi?search=dodo and I compiled it with: " This is L

[NTG-context] \startsectionlevel broken?

2016-08-08 Thread Procházka Lukáš Ing .
Hello, I'm getting weird output with \startsectionlevel - its parameters are flushed into page. I copied a sample from http://source.contextgarden.net/tex/context/base/strc-lev.mkvi?search=dodo and I compiled it with: " This is LuaTeX, Version 0.98.0 (TeX Live 2016/W32TeX) s

Re: [NTG-context] Are nested sections possible?

2016-05-19 Thread docent.einstein
ntext@ntg.nl> Datum: 14.03.2016 09:05 Předmět: Re: [NTG-context] Are nested sections possible? Hello, one more thing: It would be nice to allow mixing: - \section like commands (or \startsection ... \stopsection) - AND \startsectionlevel ... \stopsectionlevel. The main problem is that one may NE

Re: [NTG-context] headline and no indent

2016-05-09 Thread Marco Patzer
dent. Hmm, how to get this? That's actually the default behaviour when you enable indenting. Example: \setupindenting [yes, 1em] \starttext \startsectionlevel [title=Foo] \input knuth \startsectionlevel[title=Bar] \input knuth \stopsectionlevel \stopsectionlevel \stoptext If

Re: [NTG-context] Tagging and startitemize[columns]

2016-03-23 Thread Christoph Reller
On Tue, 22 Mar 2016 14:53:05 +0100, Hans Hagen <pra...@wxs.nl> wrote: > > On 3/22/2016 9:19 AM, Christoph Reller wrote: > > \setuptagging[state=start] > > \starttext > > > >\startsectionlevel[title=Chapter] > > Text. > > \startit

Re: [NTG-context] Tagging and startitemize[columns]

2016-03-22 Thread Hans Hagen
On 3/22/2016 9:19 AM, Christoph Reller wrote: \setuptagging[state=start] \starttext \startsectionlevel[title=Chapter] Text. \startitemize[columns] \item A \item B \stopitemize \startitemize \item A \item B \stopitemize More Text

[NTG-context] Tagging and startitemize[columns]

2016-03-22 Thread Christoph Reller
te=start] \starttext \startsectionlevel[title=Chapter] Text. \startitemize[columns] \item A \item B \stopitemize \startitemize \item A \item B \stopitemize More Text. \stopsec

Re: [NTG-context] Are nested sections possible?

2016-03-15 Thread Alan BRASLAU
Indeed, Hans, it would be nice to be able to nest sectionlevels within a chapter...section... scheme (which is NOT depreciated, although antiquated). Currently, \startsectionlevel will by default start a chapter. One would like it to start a section if located within a chapter, a subsection

Re: [NTG-context] Are nested sections possible?

2016-03-14 Thread Procházka Lukáš Ing .
Hello, one more thing: It would be nice to allow mixing: - \section like commands (or \startsection ... \stopsection) - AND \startsectionlevel ... \stopsectionlevel. The main problem is that one may NEED to mix: - (ancient) source files which use \section (deprecated) style - with more

Re: [NTG-context] Are nested sections possible?

2016-03-11 Thread Andreas Schneider
You probably want automatic levels. Take a look at strc-lev.mkvi. \startsectionlevel[title=outer] \startsectionlevel[title=inner] \startsectionlevel[title=yet another] \stopsectionlevel \stopsectionlevel \stopsectionlevel If you need more levels than the default (which ranges from chapter

Re: [NTG-context] toc and macro

2015-05-28 Thread Wolfgang Schuster
or \startsubsubsection … You’re looking for the \startsectionlevel command. %\definesectionlevels[default][part,chapter,section,subsection] \starttext \completecontent[criterium=all] \startsectionlevel[title=Colors,reference=colors] \startsectionlevel[title=Black,reference=black] black

Re: [NTG-context] Structure of titles in MkIV

2014-10-15 Thread Alan BRASLAU
Quoting from the thread Adaptive section structuring of September 2012: %\definesectionlevels[default][section,subsection,subsubsection] \definesectionlevels[mine][title,subject,subsubject] \starttext \startsectionlevel [title=Alpha] \startsectionlevel [title=Beta

Re: [NTG-context] Dynamic headings query heading information

2014-02-07 Thread Wolfgang Schuster
][title,subject,subsubject,subsubsubject] \setuphead[chapter][color=red] \setuphead[section][color=green] \setuphead[subsection][color=blue] \define\PlaceList {\startsectionlevel[extra][title=List] % \stopsectionlevel} \starttext \startsectionlevel[title=Chapter 1] \PlaceList

Re: [NTG-context] \startstructurelevel

2013-10-25 Thread Wolfgang Schuster
and normal section command. When you want a \section for the first level change the level settings with \definesectionlevels [default] [section, subsection, subsubsection, subsubsubsection, subsubsubsubsection] and use \starttext \startsectionlevel[title=Section] \startsectionlevel[title

[NTG-context] Error markers for invalid section references

2013-01-07 Thread Marco Patzer
instead of the number. In this case no error marker is printed and AFAIK not even a hint in the log file. The correct way is to use \about instead of \in. Here's an example: \setuphead [section] [number=no] \starttext \startsectionlevel [title=Alpha] See section \in[invalid]. \par %% prints ?? See

Re: [NTG-context] Error markers for invalid section references

2013-01-07 Thread Hans Hagen
, they need to be references to the name instead of the number. In this case no error marker is printed and AFAIK not even a hint in the log file. The correct way is to use \about instead of \in. Here's an example: \setuphead [section] [number=no] \starttext \startsectionlevel [title=Alpha] See

Re: [NTG-context] counter reseting at every heading

2012-10-01 Thread Wolfgang Schuster
but they are helpful when you want endnotes end the end of each chapter etc. When you have a simple structure in your document you can use \startsectionlevel instead of \startchapter, \startsection etc. for your headings because the command switches always to the next heading (chapter - section - subsection

Re: [NTG-context] Adaptive section structuring

2012-09-13 Thread Wolfgang Schuster
either sectionlevel or structurelevel? I would go with \startsectionlevel which is the new name for the command but the old name \startstructurelevel can be also used. Wolfgang ___ If your question is of interest

Re: [NTG-context] \...structurelevel - probably a bug in the last version

2012-04-09 Thread Wolfgang Schuster
\stopstructurelevel \stoptext Change this in strc-lev.mkvi: \unexpanded\def\strc_levels_start[#category]% {\doifassignmentelse{#category} -{\ctxcommand{startautolevel(\v!default)}[#category]} -{\ctxcommand{startautolevel(#category)}}} +{\ctxcommand{startsectionlevel(\v!default